package com.sunny.myproject.storem.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.sunny.myproject.client.entity.Client;
import com.sunny.myproject.system.entity.IdEntity;

/**
 * 物料价格
 * @author sunny_nie
 *
 */
@Entity
@Table(name="tb_materielPrice")
public class MaterielPrice extends IdEntity{

	private Client client;
	private Materiel materiel;
	private double price;
	private String dis;
	private Date date;
	
	@ManyToOne(targetEntity=Client.class)
	public Client getClient() {
		return client;
	}
	public void setClient(Client client) {
		this.client = client;
	}
	@ManyToOne(targetEntity=Materiel.class)
	public Materiel getMateriel() {
		return materiel;
	}
	public void setMateriel(Materiel materiel) {
		this.materiel = materiel;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public String getDis() {
		return dis;
	}
	public void setDis(String dis) {
		this.dis = dis;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	
	
}
